<?php $this->load->view('layout/header_data_form');?>
<?php $this->load->view('layout/logo');?>
<div id="wrap">
  <form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
    <table border="0" cellpadding="5" cellspacing="0">
      <tr>
        <td width="550" align="left" valign="top"><table border="1" cellpadding="7" cellspacing="0" style="border-collapse:collapse;" bordercolor="#CCCCCC";>
        
          <tr>
            <td align="left">Document Name</td>
            <td><?php echo $document->name;?></td>
          </tr>
          <tr>
            <td align="left">Download</td>
            <td><a title="Download" href="<?php echo base_url().'download/'.$document->id;?>"><img src="<?php echo img_link('download.jpg');?>"/></a></td>
          </tr>
          <tr>
            <td align="left">Document Type</td>
            <td><?php echo ($document->cat==1 ? 'Presentation Slides' : 'Statistics');?></td>
          </tr>
          <tr>
            <td align="left">Date</td>
            <td><?php echo date('m-d-Y',strtotime($document->created_date));?></td>
          </tr>
          <tr>
            <td align="left">Explanation</td>
            <td><?php echo $document->explanation;?></td>
          </tr>
        </table>    
        </td>
      </tr>
      <tr>
        <td align="left" valign="top"><table border="0" cellpadding="7" cellspacing="0">
          <tr>
            <td align="left"><a href="JavaScript:window.close();"><img src="<?php echo img_link('cwindow.jpg');?>" alt="Close Window" width="82" height="15" border="0" /></a></td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
        <td align="left" valign="top">&nbsp;</td>
      </tr>
    </table>
    
   
    
  </form>
  
  
</div>
<?php $this->load->view('layout/footer_data_form');?>